package com.maycari.captainbi.common.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@ApiModel("分页信息")
@Data
public class PageResponce<T> implements Serializable {

    @ApiModelProperty(value = "分页数据")
    private List<T> data = new ArrayList<T>();

    @ApiModelProperty(value = "总数")
    private Integer count;

    public PageResponce() {

    }

    public PageResponce(long count, List<T> data) {
        super();
        this.data = data;
        this.count = (int) count;
    }

}
